package com.jzy.bxb.app.manager;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 天气
 * @author JiangZhiYong
 * QQ:359135103
 */
public class WeatherManager {
	private static volatile WeatherManager weatherManager;
	
	/**天气 key：城市*/
	Map<String, String> weatherMap=new ConcurrentHashMap<>();

	private WeatherManager() {
	}
	
	public static WeatherManager getInstance(){
		if(weatherManager==null){
			synchronized (WeatherManager.class) {
				if(weatherManager==null){
					weatherManager=new WeatherManager();
				}
			}
		}
		return weatherManager;
	}

	public Map<String, String> getWeatherMap() {
		return weatherMap;
	}
	
	
}
